package com.hc.javabasestudyproject.juc.aqs.lock;

import ch.qos.logback.core.encoder.EchoEncoder;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @Author: huangcheng
 * @CreateTime: 2024-04-12  15:27
 * @Description:
 * @Version: 1.0
 */
public class ReentrantLockTest {
    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        lock.lock();
        try {

        }catch (Exception e) {

        }finally {
            lock.unlock();
        }

    }
}
